﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FlatRedBall.Input;
using Microsoft.Xna.Framework;
using Keys = Microsoft.Xna.Framework.Input.Keys;

namespace Runaway
{
    class Input
    {
        /*
         * Provides methods which other classes can use to get input from the keyboard and mouse. 
         */

        public static Boolean getMoveRightInput()
        {
            return InputManager.Keyboard.KeyDown(Keys.D);
        }

        public static Boolean getMoveLeftInput()
        {
            return InputManager.Keyboard.KeyDown(Keys.A);
        }

        public static Boolean getJumpInput()
        {
            return InputManager.Keyboard.KeyDown(Keys.Space);
        }

        public static Boolean getSlidingInput()
        {
            return InputManager.Keyboard.KeyDown(Keys.S);
        }

        public static Boolean getEnterInput()
        {
            /*"Enter will pause the game and move from title screen*/
            return InputManager.Keyboard.KeyPushed(Keys.Enter);
           
        }

        public static int getMouseInput()
        {
            int returnValue = 0;

            if (InputManager.Mouse.ButtonDown(Mouse.MouseButtons.LeftButton))
                returnValue = 1;
            else if (InputManager.Mouse.ButtonDown(Mouse.MouseButtons.RightButton))
                returnValue = 2;

            return returnValue;
        }

        // Added //
        public static Boolean getAttackInput()
        {
            return InputManager.Keyboard.KeyDown(Keys.Enter);

        }
        // Change key to whatever you want //
    }
}
